<template>
  <view class="bgc-white p10 mt12 br4 flex-center-between" @click="goDetail">
    <view>
      <view style="display: flex">
        <i class="iconfont mr8 fs20 tc-theme" style="flex-shrink: 0">&#xe6a0;</i>
        <view>{{ target.institutionTitle }}</view>
      </view>
      <view class="mt8 pl30">{{ formatFullDate(target.gmtCreate) }}</view>
    </view>
    <view class="pv4 ph8 bgc-theme tc-white br4 ml12" style="flex-shrink: 0">查看详情</view>
  </view>
</template>
<script>
import { formatFullDate } from "@/utils/tools";
export default {
  name: "",
  components: {},
  mixins: [],
  props: {
    target: {
      type: Object,
      default: () => {}
    }
  },
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    formatFullDate,
    goDetail() {
      uni.setStorageSync("tempZhiduDetail", JSON.stringify(this.target));
      uni.navigateTo({
        url: "/pages/zhidu/zhiduDetail"
      });
    }
  }
};
</script>
<style lang="scss" scoped>
.ellipsis-multi {
  text-overflow: ellipsis;
  overflow: hidden;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}
</style>
